cmake_minimum_required(VERSION 3.5)

project(OpenGLFBOExample LANGUAGES CXX)

#set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt6 COMPONENTS Core Widgets OpenGL OpenGLWidgets REQUIRED)


add_executable(OpenGLFBOExample
    main.cpp
    MyGLWidget.cpp
    MyGLWidget.h
)

target_link_libraries(OpenGLFBOExample
    Qt::Core
    Qt::Widgets
    Qt::OpenGL
    Qt::OpenGLWidgets
    )


